#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project ：back 
@File    ：classify_svc.py
@IDE     ：PyCharm 
@Author  ：七分是你
@Date    ：2024/7/18 下午6:44 
@explain : 
"""
from typing import Any

from app import utils


class ClassifyService(object):
    @classmethod
    def index(cls, type: str = '', **kwargs: Any) -> utils.HttpResponse:
        method = {
            'platform': cls.platform,
            'adPlatform': cls.adPlatform,
            'articleCategory': cls.articleCategory,
            'hrtoolCategory': cls.hrtoolCategory,
            'helpCategory': cls.helpCategory,
            'adCategory': cls.adCategory,
            'setmealList': cls.setmealList,
            'education': cls.education,
            'experience': cls.experience,
            'major': cls.major,
            'current': cls.current,
            'resumeSex': cls.resumeSex,
            'marriage': cls.marriage,
            'resumeNature': cls.resumeNature,
            'resumeAudit': cls.resumeAudit,
            'jobcategory': cls.jobcategory,
            'citycategory': cls.citycategory,
            'trade': cls.trade,
            'language': cls.language,
            'languageLevel': cls.languageLevel,
            'resumeTag': cls.resumeTag,
            'companyAudit': cls.companyAudit,
            'companyNature': cls.companyNature,
            'companyScale': cls.companyScale,
            'jobTag': cls.jobTag,
            'jobAudit': cls.jobAudit,
            'jobDisplay': cls.jobDisplay,
            'jobNature': cls.jobNature,
            'companyImgAudit': cls.companyImgAudit,
            'resumeImgAudit': cls.resumeImgAudit,
            'couponList': cls.couponList,
            'companyList': cls.companyList,
            'orderStatus': cls.orderStatus,
            'orderPayment': cls.orderPayment,
            'orderServiceType': cls.orderServiceType,
            'orderServiceTypeCompany': cls.orderServiceTypeCompany,
            'orderServiceTypePersonal': cls.orderServiceTypePersonal,
            'resumeModule': cls.resumeModule,
            'wage': cls.wage,
            'customerService': cls.customerService,
            'tipoffJob': cls.tipoffJob,
            'tipoffResume': cls.tipoffResume,
            'feedback': cls.feedback,
            'navPage': cls.navPage,
            'setmealOpenType': cls.setmealOpenType,
            'tplOfIndex': cls.tplOfIndex

        }
        if not type:
            return utils.ResponseFail('请选择', 500)
        ret = {}
        if ',' in type.strip():
            type_arr = type.split(',')
            for value in type_arr:
                if value in method:
                    ret[value] = method[value](**kwargs)
        else:
            if type in method:
                ret[type] = method[type](**kwargs)
        return utils.ResponseSuccess(ret)

    @classmethod
    def platform(cls, **kwargs):
        map_platform = {
            'app': 'APP',
            'mobile': '手机浏览器',
            'wechat': '微信浏览器',
            'miniprogram': '微信小程序',
            'tiktok': '抖音小程序',
            'web': '电脑浏览器',
            'system': '系统',
        }
        ret = []
        for key, value in map_platform.items():
            arr = {'id': key, 'name': value}
            ret.append(arr)
        return ret

    @classmethod
    def adPlatform(cls, **kwargs):
        pass

    @classmethod
    def articleCategory(cls, **kwargs):
        pass

    @classmethod
    def helpCategory(cls, **kwargs):
        pass

    @classmethod
    def adCategory(cls, **kwargs):
        pass

    @classmethod
    def setmealList(cls, **kwargs):
        pass

    @classmethod
    def education(cls, **kwargs):
        pass

    @classmethod
    def experience(cls, **kwargs):
        pass

    @classmethod
    def major(cls, **kwargs):
        pass

    @classmethod
    def current(cls, **kwargs):
        pass

    @classmethod
    def resume(cls, **kwargs):
        pass

    @classmethod
    def resumeNature(cls, **kwargs):
        pass

    @classmethod
    def resumeAudit(cls, **kwargs):
        pass

    @classmethod
    def jobCategory(cls, **kwargs):
        pass

    @classmethod
    def jobNature(cls, **kwargs):
        pass

    @classmethod
    def companyNature(cls, **kwargs):
        pass

    @classmethod
    def companyScale(cls, **kwargs):
        pass

    @classmethod
    def jobTag(cls, **kwargs):
        pass

    @classmethod
    def jobAudit(cls, **kwargs):
        pass

    @classmethod
    def companyImgAudit(cls, **kwargs):
        pass

    @classmethod
    def hrtoolCategory(cls, **kwargs):
        pass

    @classmethod
    def resumeSex(cls, **kwargs):
        pass

    @classmethod
    def marriage(cls, **kwargs):
        pass

    @classmethod
    def jobcategory(cls, **kwargs):
        pass

    @classmethod
    def companyAudit(cls, **kwargs):
        pass

    @classmethod
    def citycategory(cls, **kwargs):
        pass

    @classmethod
    def trade(cls, **kwargs):
        pass

    @classmethod
    def language(cls, **kwargs):
        pass

    @classmethod
    def languageLevel(cls, **kwargs):
        pass

    @classmethod
    def resumeTag(cls, **kwargs):
        pass

    @classmethod
    def jobDisplay(cls, **kwargs):
        pass

    @classmethod
    def resumeImgAudit(cls, **kwargs):
        pass

    @classmethod
    def couponList(cls, **kwargs):
        pass

    @classmethod
    def companyList(cls, **kwargs):
        pass

    @classmethod
    def orderStatus(cls, **kwargs):
        pass

    @classmethod
    def orderPayment(cls, **kwargs):
        pass

    @classmethod
    def orderServiceType(cls, **kwargs):
        pass

    @classmethod
    def orderServiceTypeCompany(cls, **kwargs):
        pass

    @classmethod
    def orderServiceTypePersonal(cls, **kwargs):
        pass

    @classmethod
    def resumeModule(cls, **kwargs):
        pass

    @classmethod
    def wage(cls, **kwargs):
        pass

    @classmethod
    def customerService(cls, **kwargs):
        pass

    @classmethod
    def tipoffJob(cls, **kwargs):
        pass

    @classmethod
    def tipoffResume(cls, **kwargs):
        pass

    @classmethod
    def feedback(cls, **kwargs):
        pass

    @classmethod
    def navPage(cls, **kwargs):
        pass

    @classmethod
    def setmealOpenType(cls, **kwargs):
        pass

    @classmethod
    def tplOfIndex(cls, **kwargs):
        pass
